/**
 * 
 */
package com.yangtao.prototype.util.select.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yangtao.framework.constant.Option;
import com.yangtao.framework.service.BaseService;
import com.yangtao.prototype.master.dao.CommonTreeDAO;
import com.yangtao.prototype.util.select.service.SelectService;

/**
 * @author Administrator
 * 
 */
@Service
public class SelectServiceImpl extends BaseService implements SelectService {
	@Autowired
	private CommonTreeDAO treeDao;

	@Override
	public List<Option> getSlaveList(String masterId, String type)
			throws Exception {
		return treeDao.getSubTrees(masterId, type);
	}

}
